package com.pethome.web.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.pethome.common.annotation.Excel;
import com.pethome.common.core.domain.BaseEntity;

/**
 * 评论对象 t_comment
 * 
 * @author 胡继承
 * @date 2024-09-24
 */
public class Comment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键自增， */
    @Excel(name = "主键自增，")
    private Integer commentId;

    /** 评论顾客id,外键 */
    @Excel(name = "评论顾客id,外键")
    private Integer commentCustomeId;

    /** 评论文章id,外键 */
    @Excel(name = "评论文章id,外键")
    private Integer commentPostId;

    /** 评论id */
    @Excel(name = "评论id")
    private Integer commentReId;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String commentContent;

    /** 评论时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "评论时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date commentCreateAt;

    public void setCommentId(Integer commentId) 
    {
        this.commentId = commentId;
    }

    public Integer getCommentId() 
    {
        return commentId;
    }
    public void setCommentCustomeId(Integer commentCustomeId) 
    {
        this.commentCustomeId = commentCustomeId;
    }

    public Integer getCommentCustomeId() 
    {
        return commentCustomeId;
    }
    public void setCommentPostId(Integer commentPostId) 
    {
        this.commentPostId = commentPostId;
    }

    public Integer getCommentPostId() 
    {
        return commentPostId;
    }
    public void setCommentReId(Integer commentReId) 
    {
        this.commentReId = commentReId;
    }

    public Integer getCommentReId() 
    {
        return commentReId;
    }
    public void setCommentContent(String commentContent) 
    {
        this.commentContent = commentContent;
    }

    public String getCommentContent() 
    {
        return commentContent;
    }
    public void setCommentCreateAt(Date commentCreateAt) 
    {
        this.commentCreateAt = commentCreateAt;
    }

    public Date getCommentCreateAt() 
    {
        return commentCreateAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("commentId", getCommentId())
            .append("commentCustomeId", getCommentCustomeId())
            .append("commentPostId", getCommentPostId())
            .append("commentReId", getCommentReId())
            .append("commentContent", getCommentContent())
            .append("commentCreateAt", getCommentCreateAt())
            .toString();
    }
}
